package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Review;
import cn.wolfcode.trip.base.query.QueryObject;
import cn.wolfcode.trip.base.query.ReviewQueryObject;

import java.util.List;

public interface ReviewMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Review record);

    Review selectByPrimaryKey(Long id);

    Review selectNewRwviewByPrimaryKey(Long id);

    List<Review> selectForList(QueryObject qo);

    int updateByPrimaryKey(Review record);

    List<Review> listTraverl(ReviewQueryObject qo);

    List<Review> listComment(ReviewQueryObject qo);

    List<Review> getReview(ReviewQueryObject qo);

    void update(ReviewQueryObject qo);

    List<Review> getAtUser(String str);
    //at我未读数量
    List<Review> getAt(String str);

    void updateAtreaded(String str);
}